﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZWZ.Web.Codes.UC.ControlAttr
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ControlTypeAttribute : Attribute
    {
        /// <summary>
        /// 控件名称
        /// </summary>
        public string Name;
        /// <summary>
        /// 控件图标
        /// </summary>
        public string ViewImage;
        /// <summary>
        /// 控件显示类别
        /// </summary>
        public enum_CtrViewType ViewType;
        /// <summary>
        /// 设置控件属性
        /// </summary>
        /// <param name="ctrtype">控件类别</param>
        /// <param name="vimg">控件图标</param>
        /// <param name="cvtype">控件显示</param>
        public ControlTypeAttribute(string name, string vimg, enum_CtrViewType vtype)
        {
            this.Name = name;
            this.ViewImage = vimg;
            this.ViewType = vtype;
        }
    }
}
